﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DisplayTopMostMessage();
        }

        void DisplayTopMostMessage()
        {
            try
            {
                if (Convert.ToBoolean(Session["PAGE_UPDATED"]))
                {
                    if (Session["TOP_MOST_MESSAGE"] != null)
                    {
                        lblLoading.CssClass += " showonload";
                        lblLoading.Text = Session["TOP_MOST_MESSAGE"].ToString();
                        Session["TOP_MOST_MESSAGE"] = null;
                    }
                    else
                    {
                        lblLoading.Visible = false;
                    }
                    Session["PAGE_UPDATED"] = false;
                }
            }
            catch { }
        }
    }
}
